<template>
  <div class="header">
      <div class="header-left">
          <div class="iconfont back-icon">&#xe685;</div>
      </div>
      <div class="header-input">
          <span class="iconfont">&#xe67d;</span>
          输入城市/景点/游玩主题</div>
        <router-link to="/city">
            <div class="header-right">
                {{this.$store.state.city}}
                <span class="iconfont arrow-icon">&#xe688;</span>
            </div>
        </router-link>
  </div>
</template>

<script>
export default {
    name: 'HomeHeader',
}
</script>

<style scoped>
    .header{
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: .86rem;
        background: #00bcd4;
        color: #fff;
    }
    .header .header-left{
        text-align: center;
        width: .64rem;
    }
    .header .header-left .back-icon{
        font-size: .4rem;
    }
    .header .header-input{
        height: .64rem;
        line-height: .64rem;
        flex: 1;
        background: #fff;
        border-radius: .1rem;
        margin-left: .2rem;
        padding-left: .2rem;
        color: #ccc;
    }
    .header .header-right{
        min-width: 1.04rem;
        padding:0 .1rem;
        text-align: center;
        color: #fff;
    }
    .arrow-icon{
        font-size: .24rem;
        margin-left: -0.04rem;
    }
</style>